package br.com.sgc.session;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import javax.ejb.Stateless;

import br.com.sgc.entities.geral.DiaSemana;
import br.com.sgc.entities.medico.Medico;

@Stateless
public class DiaAtendimentoSession implements Serializable{
	
	private static final long serialVersionUID = 3152642853736535279L;

	public List<DiaSemana> createDiasAtendimento(List<Integer> listDiasSemana, Medico medico) {
		List<DiaSemana> dias = new ArrayList<DiaSemana>();
		for(Integer i: listDiasSemana){
			DiaSemana dia = new DiaSemana();
			dia.setDiaSemana(i);
			dia.setMedico(medico);
			dia.setClinica(medico.getClinica());
			dias.add(dia);
			
		}
		return dias;
	}

}
